﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace NDD_Day1
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void canvasDemoClick(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			NavigationService.Navigate(new Uri("/StackPanelDemoPage.xaml",UriKind.RelativeOrAbsolute));
        }

        private void bntCanvasDemo_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/CanvasDemoPage.xaml?a=10&b=20", UriKind.RelativeOrAbsolute));
            App a = (App.Current as App);
            a.MyNumber = 20;
            
        }
    }
}
